package com.example.demo.src;

import org.springframework.util.StringUtils;

/**
 * Created by Easettle
 * Date:2021-01-03 13:51
 * Email:easettle@qq.com
 */
public class ValidateHandler extends Handler{


    @Override
    public void doHandler(Member member) {
        if (StringUtils.isEmpty(member.getLoginName()) || StringUtils.isEmpty(member.getLoginPass())) {
            System.out.println("用户名或者密码为空!");
            return;
        }
        System.out.println("用户名或者密码校验通过，可以往下面执行!");
        chain.doHandler(member);
    }
}
